package cn.tuling.entity;

/**
 * 统一返回类型
 */
public class Result<T> {
    private Integer code;
    private String mgs;
    private T data;

    public Result(Integer code, String mgs, T data) {
        this.code = code;
        this.mgs = mgs;
        this.data = data;
    }

    public Integer getCode() {
        return code;
    }

    public void setCode(Integer code) {
        this.code = code;
    }

    public String getMgs() {
        return mgs;
    }

    public void setMgs(String mgs) {
        this.mgs = mgs;
    }

    public T getData() {
        return data;
    }

    public void setData(T data) {
        this.data = data;
    }
}
